#!/bin/bash

echo -e "---------------------------------------------------------"

echo -e "`date` --- begin docker prune"

docker info

docker system prune --volumes -af

echo -e "`date` --- finish docker prune"
free -h

echo -e "---------------------------------------------------------"

# 10 07,13,19,01 * * * sh /opt/job/cleanup-scripts/docker-prune.sh  >> /opt/job/cleanup-scripts/logs/docker-prune.log
